GtkStyleContext: Do not cancel possibly unstarted transitions
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 22:16:09 +0000 (23:16 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 10 Jan 2011 22:52:21 +0000 (23:52 +0100)
It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.

gtk/gtkstylecontext.c

index bad7409a9057ecef73486ecba10e45d364fb540b..326364cf45114c7d8fd06c62665f2499fdb903dd 100644 (file)
@@ -3143,13 +3143,8 @@ _gtk_style_context_coalesce_animation_areas (GtkStyleContext *context,
       if (info->invalidation_region)
         continue;
 
-      /* There's not much point in keeping the animation running */
       if (info->rectangles->len == 0)
-        {
-          priv->animations = g_slist_remove (priv->animations, info);
-          animation_info_free (info);
-          continue;
-        }
+        continue;
 
       info->invalidation_region = cairo_region_create ();
       _gtk_widget_get_translation_to_window (widget, info->window, &rel_x, &rel_y);